package com.sfac.test.entity;



import com.sfac.common.entity.AbstractEntity;
import lombok.Data;

import javax.persistence.*;
import java.util.List;


@Data
@Entity
@Table(name = "test_school")
public class School  extends AbstractEntity {
    private String name;

    @Column(columnDefinition = "text")
    private String description;

    @OneToMany(cascade = CascadeType.ALL,mappedBy = "school")
    private List<Clazz> clazzes;

    // 不参与创建表
    @Transient
    private String code;



}
